import axios from "axios"

//分页查询试卷
export const listByPageService = (data) => {
    return axios.get("/paper/listByPage", { params: { ...data } })
}

//新增试卷
export const addPaperService = (data) => {
    return axios.post("/paper/add", data)
}

//根据id获取考卷
export const paperGetByIdService = (id) => {
    return axios.get("/paper/getById", { params: { id: id } })
}

//根据id删除考卷及其相关信息
export const paperDeleteByIdService = (id) => {
    return axios.delete("/paper/deleteById", { params: { id: id } })
}

//修改考卷
export const paperEditService = (data) => {
    return axios.post("/paper/edit", data)
}